home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / DynCreateFieldsMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  5.2 KB  |  174 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. // Alias|Wavefront Script File
  19. // MODIFY THIS AT YOUR OWN RISK
  20. //
  21. // Creation Date:  13 April 1997
  22. // Author:         gf
  23. //
  24. //
  25. //  Procedure Name:
  26. //      DynCreateFieldsMenu
  27. //
  28. //  Description:
  29. //        Create the DYNAMICS->CreateFields
  30. //
  31. //  Input Arguments:
  32. //      parent to parent the menu to.
  33. //
  34. //  Return Value:
  35. //      None.
  36. //
  37.  
  38.  
  39. global proc DynCreateFieldsMenu( string $parent )
  40. {
  41.     setParent -m $parent;
  42.     if( `menu -q -ni $parent` != 0 ) {
  43.         //
  44.         //    Menu is built already - just return
  45.         //
  46.         return;
  47.     }
  48.  
  49.     menuItem -l "Air" 
  50.         -annotation "Air: Create an air field.  Select objects to be affected by the field"
  51.         -c "Air" 
  52.         -dmc "performDynamics 1 Air 2"
  53.         -i "posAir.xpm"
  54.         createAirItem;
  55.         menuItem -optionBox true -i "posAir.xpm"
  56.             -annotation "Air Option Box"
  57.             -l "Air Option Box"
  58.             -c "AirOptions" 
  59.             createAirDialogItem;
  60.  
  61.     menuItem -l "Drag" 
  62.         -annotation "Drag: Create a drag field.  Select objects to be affected by the field"
  63.         -c "Drag" 
  64.         -dmc "performDynamics 1 Drag 2"
  65.         -i "posDrag.xpm"
  66.         createDragItem;
  67.         menuItem -optionBox true -i "posDrag.xpm"
  68.             -annotation "Drag Option Box"
  69.             -l "Drag Option Box"
  70.             -c "DragOptions" 
  71.             createDragDialogItem;
  72.  
  73.     menuItem -l "Gravity" 
  74.         -annotation "Gravity: Create a gravity field.  Select objects to be affected by the field"
  75.         -c "Gravity" 
  76.         -dmc "performDynamics 1 Gravity 2"
  77.         -i "posGravity.xpm"
  78.         createGravityItem;
  79.         menuItem -optionBox true -i "posGravity.xpm"
  80.             -annotation "Gravity Option Box"
  81.             -l "Gravity Option Box"
  82.             -c "GravityOptions" 
  83.             createGravityDialogItem;
  84.  
  85.     menuItem -l "Newton"
  86.         -annotation "Newton: Create a newton field.  Select objects to be affected by the field"
  87.         -c "Newton" 
  88.         -dmc "performDynamics 1 Newton 2"
  89.         -i "posNewton.xpm"
  90.         createNewtonItem;
  91.         menuItem -optionBox true -i "posNewton.xpm"
  92.             -annotation "Newton Option Box"
  93.             -l "Newton Option Box"
  94.             -c "NewtonOptions" 
  95.             createNewtonDialogItem;
  96.  
  97.     menuItem -l "Radial" 
  98.         -annotation "Radial: Create a radial field.  Select objects to be affected by the field"
  99.         -c "Radial" 
  100.         -dmc "performDynamics 1 Radial 2"
  101.         -i "posRadial.xpm"
  102.         createRadialItem;
  103.         menuItem -optionBox true -i "posRadial.xpm"
  104.             -annotation "Radial Option Box"
  105.             -l "Radial Option Box"
  106.             -c "RadialOptions" 
  107.             createRadialDialogItem;
  108.  
  109.     menuItem -l "Turbulence" 
  110.         -annotation "Turbulence: Create a turbulence field.  Select objects to be affected by the field"
  111.         -c "Turbulence" 
  112.         -dmc "performDynamics 1 Turbulence 2"
  113.         -i "posTurbulence.xpm"
  114.         createTurbulenceItem;
  115.         menuItem -optionBox true -i "posTurbulence.xpm"
  116.             -annotation "Turbulence Option Box"
  117.             -l "Turbulence Option Box"
  118.             -c "TurbulenceOptions" 
  119.             createTurbulenceDialogItem;
  120.  
  121.     menuItem -l "Uniform" 
  122.         -annotation "Uniform: Create a unform field.  Select objects to be affected by the field"
  123.         -c "Uniform" 
  124.         -dmc "performDynamics 1 Uniform 2"
  125.         -i "posUniform.xpm"
  126.         createUniformItem;
  127.         menuItem -optionBox true -i "posUniform.xpm"
  128.             -annotation "Uniform Option Box"
  129.             -l "Uniform Option Box"
  130.             -c "UniformOptions" 
  131.             createUniformDialogItem;
  132.  
  133.     menuItem -l "Vortex"
  134.         -annotation "Vortex: Create a vortex field.  Select objects to be affected by the field"
  135.         -c "Vortex" 
  136.         -dmc "performDynamics 1 Vortex 2"
  137.         -i "posVortex.xpm"
  138.         createVortexItem;
  139.         menuItem -optionBox true -i "posVortex.xpm"
  140.             -annotation "Vortex Option Box"
  141.             -l "Vortex Option Box"
  142.             -c "VortexOptions" 
  143.             createVortexDialogItem;
  144.  
  145.     menuItem -l "Volume Axis"
  146.         -annotation "Volume Axis: Create a volume axis field.  Select objects to be affected by the field"
  147.         -c "VolumeAxis" 
  148.         -dmc "performDynamics 1 VolumeAxis 2"
  149.         -i "posVolumeAxis.xpm"
  150.         createVolumeAxisItem;
  151.         menuItem -optionBox true 
  152.             -i "posVolumeAxis.xpm"
  153.             -annotation "Volume Axis Option Box"
  154.             -l "Volume Axis Option Box"
  155.             -c "VolumeAxisOptions" 
  156.             createVolumeAxisDialogItem;
  157.  
  158.     menuItem -d true;
  159.  
  160.     menuItem -l "Use Selected as Source of Field"
  161.         -annotation "Use Selected as Source of Field: Select field, then select object to be its source"
  162.         -c "AttachSelectedAsSourceField"
  163.         addDynamicItem;
  164.  
  165.     menuItem -l "Affect Selected Object(s)" 
  166.         -annotation "Affect Selected Object(s): Select fields and objects to be affected by the fields"
  167.         -c "AffectSelectedObject"
  168.         -i "connectField.xpm"
  169.         connFieldItem;
  170.  
  171. }
  172.  
  173.  
  174.